package operations;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation{
    public void work(BookList bookList) {
        //获取当前图书数
        int sz = bookList.getBookSize();
        //开始遍历、展示
        for(int i = 0 ;i < sz ;i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
